package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 图书上架对象 t_book_storage_info
 * 
 * @author zhaowq
 * @date 2022-06-08
 */
public class TBookStorageInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 图书名称 */
    private Long bookId;

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    /** 图书名称 */
    @Excel(name = "图书名称")
    private String bookName;

    /** 上架时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "上架时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date putShelfTime;

    /** 总数量 */
    @Excel(name = "总数量")
    private Long total;

    /** 当前剩余数量 */
    @Excel(name = "当前剩余数量")
    private Long currentRemainingTotal;

    public String getStorageLocationName() {
        return storageLocationName;
    }

    public void setStorageLocationName(String storageLocationName) {
        this.storageLocationName = storageLocationName;
    }

    /** 存放位置 */
    @Excel(name = "存放位置")
    private String storageLocationName;

    /** 存放位置 */
    private Long storageLocationId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setBookId(Long bookId) 
    {
        this.bookId = bookId;
    }

    public Long getBookId() 
    {
        return bookId;
    }
    public void setPutShelfTime(Date putShelfTime) 
    {
        this.putShelfTime = putShelfTime;
    }

    public Date getPutShelfTime() 
    {
        return putShelfTime;
    }
    public void setTotal(Long total) 
    {
        this.total = total;
    }

    public Long getTotal() 
    {
        return total;
    }
    public void setCurrentRemainingTotal(Long currentRemainingTotal) 
    {
        this.currentRemainingTotal = currentRemainingTotal;
    }

    public Long getCurrentRemainingTotal() 
    {
        return currentRemainingTotal;
    }
    public void setStorageLocationId(Long storageLocationId) 
    {
        this.storageLocationId = storageLocationId;
    }

    public Long getStorageLocationId() 
    {
        return storageLocationId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("bookId", getBookId())
            .append("putShelfTime", getPutShelfTime())
            .append("total", getTotal())
            .append("currentRemainingTotal", getCurrentRemainingTotal())
            .append("storageLocationId", getStorageLocationId())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .append("remark", getRemark())
            .toString();
    }
}
